---@class Battlegrounds.RoomBase : Base.RoomBase
local RoomBase = Fk.Base.RoomBase:subclass("Battlegrounds.RoomBase")

RoomBase.RecruitPhase = 1 --招募阶段
RoomBase.BattlePhase = 2 --战斗阶段

local ReqRecruitPhase = require "packages.hearthstone.battlegrounds.handler.recruitphase"

function RoomBase:initialize()
  Fk.Base.RoomBase.initialize(self)
  
  -- 初始化酒馆战旗房间状态
  self.gamePhase = RoomBase.RecruitPhase
  self.turn = 1 --当前回合
  self.maxPlayers = 8
  self:addRequestHandler("Battlegrounds.RecruitPhase", ReqRecruitPhase)

end



function RoomBase:nextTurn()
  self.turn = self.turn + 1
end

function RoomBase:setGamePhase(phase)
  self.gamePhase = phase
end


return RoomBase